<div class="" id="myModal">
    <div class="modal-header">
        <h3 style="text-transform: capitalize;">Create Real</h3>
    </div>
</div>
<div style="margin: 5px 0">
    <a href="/admin/real/create" class="btn btn-primary btn-large" >Add new Real</a>
</div>




<div>
    <form method="post" action="/admin/real/create" >


        <div >
            <table class="table table-bordered table-striped" >
                <tbody>
                <tr>
                    <td width="33%">
                        <label>Customer</label>
                        <select id="CustomerID" name="CustomerID">
                            <?php
                            if($this->customers){
                                foreach($this->customers as $customer){
                                    echo '<option value="'.$customer['CustomerID'].'">'.$customer['CustomerName'].'</option>';
                                }
                            }
                            ?>
                        </select>
                        <label>RealCategory</label>
                        <select id="RealCategoryID" name="RealCategoryID">
                            <?php
                            if($this->realcategories){
                                foreach($this->realcategories as $real){
                                    echo '<option value="'.$real['RealCategoryId'].'">'.$real['RealCategoryName'].'</option>';
                                }
                            }
                            ?>
                        </select>
                        <label>SaleCategory</label>
                        <select id="SaleCategoryID" name="SaleCategoryID">
                            <?php
                            if($this->salecategories){
                                foreach($this->salecategories as $sale){
                                    echo '<option value="'.$sale['SaleCategoryId'].'">'.$sale['SaleCategoryName'].'</option>';
                                }
                            }
                            ?>
                        </select>
                        <label>Location</label>
                        <input type="text" name="Location" id="Location" placeholder="Location…">
                        <label>Description</label>
                        <input type="text" name="Description" id="Description" placeholder="Description…">
                        <label>PriceVND</label>
                        <input type="text" name="PriceVND" id="PriceVND" placeholder="PriceVND…">
                        <label>Contact</label>
                        <input type="text" name="Contact" id="Contact" placeholder="Contact…">
                        <label>SaleStatus</label>
                        <select id="SaleStatus" name="SaleStatus">
                            <option value="0">Chưa bán</option>
                            <option value="1">Đã bán</option>
                            <option value="2">Đang giao dịch</option>
                        </select>
                        <label>ExprireDate</label>
                        <input type="text" name="ExprireDate" id="ExprireDate" placeholder="ExprireDate…">
                        <label>RealArea</label>
                        <input type="text" name="RealArea" id="RealArea" placeholder="RealArea…">

                    </td>
                    <td width="33%">
                        <label>UseArea</label>
                        <input type="text" name="UseArea" id="UseArea" placeholder="UseArea…">
                        <label>Priority</label>
                        <input type="text" name="Priority" id="Priority" placeholder="Priority…">
                        <label>RealWidth</label>
                        <input type="text" name="RealWidth" id="RealWidth" placeholder="RealWidth…">
                        <label>RealLenght</label>
                        <input type="text" name="RealLenght" id="RealLenght" placeholder="RealLenght…">
                        <label>Forensic</label>
                        <select id="Forensic" name="Forensic">
                            <option value="1">Sổ hồng</option>
                            <option value="2">Chưa có</option>
                        </select>
                        <label>WC</label>
                        <input type="text" name="WC" id="WC" placeholder="WC…">
                        <label>BedRoom</label>
                        <input type="text" name="BedRoom" id="isBedRoom" placeholder="BedRoom…">
                        <label>SittingRoom</label>
                        <input type="text" name="SittingRoom" id="SittingRoom" placeholder="SittingRoom…">
                        <label>OrtherRoom</label>
                        <input type="text" name="OrtherRoom" id="OrtherRoom" placeholder="OrtherRoom…">
                        <label>Alley</label>
                        <input type="text" name="Alley" id="Alley" placeholder="Alley…">

                    </td>
                    <td width="33%"><label>Position</label>
                        <input type="text" name="Position" id="Position" placeholder="Position…">
                        <label>CarPart</label>
                        <input type="text" name="isCarPart" id="isCarPart" placeholder="isCarPart…">
                        <label>Business</label>
                        <input type="text" name="isBusiness" id="isBusiness" placeholder="isBusiness…">
                        <label>ForLive</label>
                        <input type="text" name="isForLive" id="isForLive" placeholder="isForLive…">
                        <label>UserID</label>
                        <input type="text" name="UserID" id="UserID" placeholder="UserID…">
                        <label>Status</label>
                        <input type="text" name="Status" id="Status" placeholder="Status…">

                </tr>
                </tbody>
            </table>

        </div>
        <div class="modal-footer">
            <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
            <button class="btn btn-primary" type="submit">Save changes</button>
        </div>
    </form>

</div>